package com.jhs.kjs.service.impl;

import java.util.Map;

import com.jhs.kjs.dto.CustomerUserDTO;
import com.jhs.kjs.dto.UserDTO;
import com.jhs.kjs.service.IUserService;
import com.jhs.kjs.service.dao.IUserMapper;

public class UserServiceImpl implements IUserService{

	private IUserMapper mapper;

	public void setMapper(IUserMapper mapper) {
		this.mapper = mapper;
	}

	@Override
	public void test() {
		this.mapper.test();
	}
	
	@Override
	public CustomerUserDTO login(CustomerUserDTO customerUserDTO) {
		return this.mapper.login(customerUserDTO);
	}
	
	@Override
	public void updateLoginDate(String loginID) {
		this.mapper.updateLoginDate(loginID);
	}
	
	@Override
	public void updatePwFailCnt(String loginID) {
		this.mapper.updatePwFailCnt(loginID);
	}
	
	@Override
	public CustomerUserDTO getLoginInfo(Map<String, String> param) {
		return this.mapper.getLoginInfo(param);
	}

	@Override
	public void addNewUser(UserDTO user) {
		this.mapper.addNewUser(user);		
	}

	@Override
	public Integer checkDupl(UserDTO user) {
		return this.mapper.checkDupl(user);		
	}

	@Override
	public void updateUser(UserDTO user) {
		this.mapper.updateUser(user);		
	}
	
	@Override 
	public void updateUserPoint(Map<String, String> param) {
		this.mapper.updateUserPoint(param);
	}

	@Override
	public String findUserId(Map<String, String> param) {
		return this.mapper.findUserId(param);	
	}

	@Override
	public int findUserPw(Map<String, String> param) {
		return this.mapper.findUserPw(param);	
	}

	@Override
	public void updateUserPw(Map<String, String> param) {
		this.mapper.updateUserPw(param);	
	}
}
